<template>
  <view class="page" style="position: fixed">
    <view class="" style="position: fixed" @click="test"> asdasdasdas</view>
  </view>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      videoSrc: 'https://vod.plus.jlntv.cn/video/2020/11/11/33e99529a8e1ac6fccdbec195cb53254.mp4'
    }
  },
  onShow() {},
  methods: {
    test() {
      uni.navigateTo({
        url: `/pages/test/videoPaly`,
        fail: err => {
          console.log(err)
        }
      })
    },
    getData() {
      var that = this
      uni.request({
        url: this.$global.baseUrl + 'getMydata',
        method: 'GET',
        header: {
          token: this.$db.getToken()
        },
        success: res => {
          that.xiaoxi = res.data.data.xiaoxi
          that.shoucang = res.data.data.shoucang
          that.renzheng = res.data.data.renzheng
        }
      })
    },
    goPath(url) {
      if (url == 'card') {
        return this.realName()
      }
      this.$to(url)
    },
    realName() {
      this.$http({
        url: 'realNameStatus',
        data: {
          user_id: this.userInfo.id
        }
      }).then(res => {
        //审核通过
        if (res.data == 1) {
          uni.navigateTo({
            url: '/pages/authentication/index?status=1'
          })
        }
        if (res.data == 2) {
          //审核拒绝
          uni.navigateTo({
            url: '/pages/authentication/index?status=2'
          })
        }
        if (res.data == 3) {
          uni.navigateTo({
            url: '/pages/realNameAuthentication/index'
          })
        }

        if (res.data == 4) {
          uni.navigateTo({
            url: '/pages/authentication/index?status=4'
          })
        }
      })
    }
  }
}
</script>

<style lang="css" scoped>
@import '../common/common.css';
.page {
  background-color: rgba(248, 248, 248, 1);
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.item-text {
  font-size: 13px;
  color: #333333;
  height: auto;
}
.menuItem {
  display: flex;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid #f9f9f9;
}
.header {
  background: url(/static/user/bac.png) no-repeat center;
  background-size: 100% 100%;
  padding: 0px 12rpx 28rpx 18rpx;
  height: 200px;
  padding-top: calc(var(--status-bar-height) + 40px);
}

.avatar {
  width: 82px;
  height: 82px;
  margin-right: 10px;
  border-radius: 50px;
}

.navList {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 8px;
  align-self: center;
  margin-top: -8rpx;
  width: 95%;
  margin: 10px auto;
  padding: 28rpx 36rpx 28rpx 36rpx;
}

.incoImg {
  width: 50rpx;
  height: 50rpx;
  display: block;
}

.menuList {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 20px;
  margin: 10px auto;
  width: 95%;
  margin-top: 10px;
}
.navItem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
</style>
